#!/bin/sh
#
# TakeDevices:  Take the current virtual and and logging console back.
#               Any other device which was given away should be taken
#               back herein. Called by Xreset.
#
# Copyright (c) 2000 SuSE GmbH Nuernberg, Germany.
# please send bugfixes or comments to feedback@suse.de.
#
# Author: Werner Fink,   <werner@suse.de>
#

if test -c /dev/tty0 ; then
    chown root:tty    /dev/tty0
    chmod 622         /dev/tty0
fi
if test -p /dev/xconsole ; then
    chown root:tty    /dev/xconsole
    chmod 400         /dev/xconsole
fi
